Image processing device, method, and program

ABSTRACT

A parameter value regarding an endoscope operation at an arbitrary position on a course is calculated from a three-dimensional image indicating a luminal structure. Specifically, one of a clockwise direction and a counterclockwise direction around an axis is set to positive, the other is set to negative, and a rotation angle of the endoscope due to a rotation operation at a position of a target is calculated so that a sum of a cumulative total of rotation angles of the endoscope due to a rotation operation performed until the distal end portion of the endoscope arrives at the position of the target after the distal end portion of the endoscope is inserted into a luminal structure, and the rotation angle of the endoscope due to the rotation operation at the position of the target falls within a predetermined angle range.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a Continuation of PCT International Application No. PCT/JP2016/054387 filed on Feb. 16, 2016, which claims priority under 35 U.S.C §119(a) to Patent Application No. 2015-054179 filed in Japan on Mar. 18, 2015, all of which are hereby expressly incorporated by reference into the present application.

BACKGROUND OF THE INVENTION 1. Field of the Invention

The present invention relates to an image processing device, method, and a non-transitory computer readable recording medium storing a program in which a parameter value regarding an endoscope operation for advancing an endoscope along a predetermined course in a luminal structure is calculated from a three-dimensional image indicating the luminal structure.

2. Description of the Related Art

In recent years, a technology for performing observation or treatment on a tubular structure such as a large intestine or a bronchial tube of a patient using an endoscope has attracted attention. JP2009-254837A discloses a technology for supporting an operation of an endoscope by an operator by presenting various kinds of information for guiding a distal end portion of the endoscope to a desired position in a luminal structure. Further, JP2009-511155A discloses a technology for calculating up, down, right, and left bending angles of a distal end portion at each position on a course for advancing an endoscope along a desired course in a luminal structure in a case where an operation of bending the distal end portion in an up-down direction and a left-right direction is allowed in the endoscope.

SUMMARY OF THE INVENTION

Incidentally, in an endoscope such as an endoscope for a bronchial tube in which an operation of bending a distal end portion only within one plane is allowed, the endoscope cannot be advanced in a desired direction only by an operation of bending the distal end portion. In this case, it is necessary to match the one plane within which the operation of bending the distal end portion is allowed with the desired direction by rotating the endoscope around an axis before the bending operation. In this case, as a rotation direction (clockwise or counterclockwise direction) of the endoscope, a rotation direction in which the amount of rotation necessary for a rotation operation is smaller is usually selected. For example, in a case where the endoscope is rotated by 50° in the clockwise direction, there is no problem in advancing the above-described endoscope even in rotation of 130° in the counterclockwise direction. However, the rotation of 50° in the clockwise direction in which the rotation amount is smaller is normally selected.

However, in this method, rotation in one rotation direction may continue in a plurality of rotation operations and the endoscope may rotate in the one rotation direction beyond a movable range of a wrist. In this case, there is a problem in that an operator is required to grip the endoscope again and operability is bad.

An object of the present invention is to provide an image processing device, method, and a non-transitory computer readable recording medium storing a program that reduce trouble of an operator gripping an endoscope again and improve operability in a case where the endoscope is an endoscope in which an operation of bending a distal end portion only within one plane is allowed in view of the above circumstances.

An image processing device of the present invention is an image processing device including a parameter calculation unit that calculates a parameter value regarding an endoscope operation for advancing an endoscope along a predetermined course within a luminal structure from a three-dimensional image indicating the luminal structure, wherein an advancing and retreating operation in an axial direction, an operation of rotation around an axis, and an operation of bending a distal end portion only within one plane including an axis of the distal end portion are allowed in the endoscope, and the parameter calculation unit sets one of a clockwise direction and a counterclockwise direction around the axis to positive, sets the other to negative, and calculates a rotation angle of the endoscope due to the rotation operation at an arbitrary position on the course as a parameter value regarding the rotation operation, the parameter calculation unit calculating the rotation angle of the endoscope due to the rotation operation at a position of a target so that a sum of a cumulative total of rotation angles of the endoscope due to a rotation operation performed until the distal end portion arrives at the position of the target after the distal end portion is inserted into the luminal structure, and the rotation angle of the endoscope due to the rotation operation at the position of the target falls within a predetermined angle range.

Here, the clockwise direction and the counterclockwise direction around the axis mean a clockwise direction and a counterclockwise direction when viewed from a base end side of an endoscope.

In the image processing device of the present invention, the angle range is from −90° to +90°.

In the image processing device of the present invention, the luminal structure may be a luminal organ of a human body, the angle range may be from −Ta° to +Tb°, where Ta and Tb are positive values, where Ta and Tb are positive values exceeding 90, and when calculating the rotation angle of the endoscope due to the rotation operation at an arbitrary position on the course as a parameter value regarding the rotation operation, the parameter calculation unit may calculate a rotation angle at which a direction from an dorsal side to a ventral side of a human body or a direction from the ventral side to the dorsal side is closer to an up direction of an image captured by the endoscope after the rotation operation, as a parameter value regarding the rotation operation, in a case in which there are two rotation angles of the endoscope due to the rotation operation at the position of the target so that the sum falls within the angle range.

Here, the up direction of the image means an up direction (direction from bottom to top) in an up-and-down direction (vertical direction) of the image.

In the image processing device of the present invention, the luminal structure may be a luminal organ of a human body, the angle range may be from −Ta° to +Tb°, where Ta and Tb are positive values, where Ta and Tb are positive values exceeding 90, and when calculating the rotation angle of the endoscope due to the rotation operation at an arbitrary position on the course as a parameter value regarding the rotation operation, the parameter calculation unit may calculate a rotation angle at which a direction from an inside to an outside of the human body is closer to an up direction of an image captured by the endoscope after the rotation operation, as a parameter value regarding the rotation operation, in a case in which there are two rotation angles of the endoscope due to the rotation operation at the position of the target so that the sum falls within the angle range.

In the image processing device of the present invention, the angle range is from −Ta° to +Tb°, where Ta and Tb are positive values exceeding 90, and when calculating the rotation angle of the endoscope due to the rotation operation at an arbitrary position on the course as a parameter value regarding the rotation operation, the parameter calculation unit may calculate a rotation angle at which a sum of absolute values of the rotation angles at positions at which respective rotation operations from the position of a target to positions at which one or more previous rotation operations are performed are performed is smaller, as a parameter value regarding the rotation operation, in a case in which there are two rotation angles of the endoscope due to the rotation operation at the position of the target so that the above-described sum falls within the angle range.

The image processing device of the present invention may include an image generation unit that applies the parameter value calculated by the parameter calculation unit to generate a virtual endoscopic image from the three-dimensional image.

The image processing device of the present invention may include a display unit that displays an image; and a display control unit that displays the parameter value corresponding to the position of the endoscope calculated by the parameter calculation unit on the display unit according to the position of the endoscope on the course when advancing the endoscope along the course in the luminal structure.

An image processing method of the present invention is an image processing method of calculating a parameter value regarding an endoscope operation for advancing an endoscope along a predetermined course within a luminal structure from a three-dimensional image indicating the luminal structure, wherein an advancing and retreating operation in an axial direction, an operation of rotation around an axis, and an operation of bending a distal end portion only within one plane including an axis of the distal end portion are allowed in the endoscope, and a process of calculating the parameter value includes setting one of a clockwise direction and a counterclockwise direction around the axis to positive, setting the other to negative, and calculating a rotation angle of the endoscope due to the rotation operation at an arbitrary position on the course as a parameter value regarding the rotation operation, the rotation angle of the endoscope due to the rotation operation at the position of the target being calculated so that a sum of a cumulative total of rotation angles of the endoscope due to a rotation operation performed until the distal end portion arrives at the position of the target after the distal end portion is inserted into the luminal structure, and the rotation angle of the endoscope due to the rotation operation at the position of the target falls within a predetermined angle range.

A non-transitory computer readable recording medium storing an image processing program of the present invention is an image processing program of causing a computer to execute a process of calculating a parameter value regarding an endoscope operation for advancing an endoscope along a predetermined course within a luminal structure from a three-dimensional image indicating the luminal structure, wherein an advancing and retreating operation in an axial direction, an operation of rotation around an axis, and an operation of bending a distal end portion only within one plane including an axis of the distal end portion are allowed in the endoscope, and a process of calculating the parameter value includes setting one of a clockwise direction and a counterclockwise direction around the axis to positive, setting the other to negative, and calculating a rotation angle of the endoscope due to the rotation operation at an arbitrary position on the course as a parameter value regarding the rotation operation, the rotation angle of the endoscope due to the rotation operation at the position of a target being calculated so that a sum of a cumulative total of rotation angles of the endoscope due to a rotation operation performed until the distal end portion arrives at the position of the target after the distal end portion is inserted into the luminal structure, and the rotation angle of the endoscope due to the rotation operation at the position of the target falls within a predetermined angle range.

In the image processing method and program of the present invention, the angle range may be from −90° to +90°.

The image processing program of the present invention usually includes a plurality of program modules, and each process is realized by one or a plurality of program modules. A group of program modules is recorded on a recording medium such as a CD-ROM or a DVD or recorded in a downloadable state in a storage attached to the server computer or a network storage, and is provided to a user.

In the image processing device, method, and program of the present invention, on the assumption that an advancing and retreating operation in an axial direction, an operation of rotation around an axis, and an operation of bending a distal end portion only within one plane including an axis of the distal end portion are allowed in an endoscope, the parameter value regarding the endoscope operation for advancing the endoscope along a predetermined course in the luminal structure is calculated from the three-dimensional image indicating the luminal structure. Specifically, when one of a clockwise direction and a counterclockwise direction around the axis is set to positive, the other is set to negative, and a rotation angle of the endoscope due to the rotation operation at an arbitrary position on the course is calculated as a parameter value regarding the rotation operation, the rotation angle of the endoscope due to the rotation operation at the position of the target is calculated so that a sum of a cumulative total of rotation angles of the endoscope due to a rotation operation performed until the distal end portion arrives at the position of the target after the distal end portion is inserted into the luminal structure, and the rotation angle of the endoscope due to the rotation operation at the position of the target falls within the predetermined angle range. Thus, an appropriate angle range for which a movable range of a wrist or the like is taken into consideration is determined in advance such that the rotation of the endoscope due to the rotation operation is performed only within the angle range, and it is possible to reduce trouble of an operator gripping an endoscope again and improve operability. Further, it is possible to reduce a burden on patients by shortening an examination time with the improved operability.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram illustrating a schematic configuration of an image processing system including an embodiment of the present invention.

FIG. 2 is a block diagram illustrating functions provided in an image processing device in FIG. 1.

FIG. 3 is a diagram illustrating a method of calculating a bending angle in a bending operation of an endoscope.

FIG. 4 is a diagram illustrating a plane passing through positions of a bending operation at three points on a course of a bronchial tube.

FIG. 5 is a diagram illustrating a plane within which an operation of bending a distal end portion of an endoscope is allowed.

FIG. 6 is a diagram illustrating a method of calculating an angle of rotation in a rotation operation of the endoscope.

FIG. 7 is a diagram (part 1) illustrating a method of determining an angle of rotation on the basis of a direction of an image.

FIG. 8 is a diagram (part 2) illustrating a method of determining an angle of rotation on the basis of a direction of an image.

FIG. 9 is a flowchart illustrating a flow of a process performed by the image processing device of FIG. 1.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

Hereinafter, an image processing system including an embodiment of an image processing device, method, and program of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram illustrating a schematic configuration of an image processing system. As illustrated in FIG. 1, in this system, an endoscope device 1, a three-dimensional image capturing device 2, an image storage server 3, and an image processing device 4 are communicably connected over the network 9.

The endoscope device 1 includes an endoscope 11 that is inserted into a bronchial tube (a luminal structure) of a subject and images the inside of the bronchial tube, a processor device 12 that generates an image of the inside of the bronchial tube (hereinafter referred to as “endoscopic image”) on the basis of an imaging signal obtained by imaging in the endoscope 11, and a position detection device 13 that detects a position of a distal end of the endoscope 11 in the bronchial tube.

The endoscope 11 is configured so that an advancing and retreating operation in an axial direction, an operation of rotation around an axis, and an operation of bending a distal end portion only within one plane including an axis of the distal end portion are allowed. The endoscope 11 includes an operation unit for operating an operation of the endoscope on the base end side, and has a mechanism for bending the distal end portion in a predetermined angle range within one plane including an axis of the distal end portion according to an operation input from the operation unit.

The processor device 12 converts the imaging signal obtained by imaging in the endoscope 11 into a digital image signal, performs correction of image quality through digital signal processing such as white balance adjustment and shading correction, and generates the endoscopic image. The generated endoscopic image is transmitted to the image processing device 4 via the image storage server 3 or directly.

The position detection device 13 detects a characteristic shape of a distal end of the endoscope using, for example, an echo device having a detection area in a three-dimensional coordinate system with a specific position of the subject as a reference point, to detect the position of the distal end of the endoscope in the bronchial tube. Information on the detected position is transmitted to the image processing device 4.

The three-dimensional image capturing device 2 is a device that images an inspection target part of the subject to generate a three-dimensional image representing the inspection target part. Specifically, the three-dimensional image capturing device 2 is a computed tomography (CT) device, a magnetic resonance imaging (MRI) device, or the like. The generated three-dimensional image is transmitted to the image storage server 3 and stored. In this embodiment, the three-dimensional image capturing device 2 generates the three-dimensional image in which a chest portion including the bronchial tube is captured.

The image storage server 3 is a computer that stores and manages data, and includes an external storage device and database management software. The image storage server 3 acquires image data such as the endoscopic image acquired by the endoscope device 1 and the three-dimensional image generated by the three-dimensional image capturing device 2 via a network, stores the image data in a recording medium such as an external storage device, and manages the image data.

The image processing device 4 is an image processing device in which an image processing program of the present invention installed in a computer (including a smartphone or a tablet computer). The image processing device 4 includes a device body 5 including a central processing unit (CPU) and the like, an input unit 6 that receives an input from a user, and a display unit 7 that performs a display. The input unit 6 is a mouse, a keyboard, a touch pad, or the like. The display unit 7 is a liquid crystal display, a touch panel, a touch screen, or the like.

The device body 5 includes a CPU 5 a, a memory 5 b, and a hard disk drive (HDD) 5 c. The CPU 5 a, the memory 5 b, and the HDD 5 c are connected to each other by a bus line. In the HDD 5 c, the image processing program of the present invention and data referred to by the program are stored. The CPU 5 a executes various processes using the memory 5 b as a primary storage area according to the program stored in the HDD 5 c.

FIG. 2 is a functional block diagram illustrating functions of the image processing device 4. As illustrated in FIG. 2, the device body 5 of the image processing device 4 functions as an image acquisition unit 51, a parameter calculation unit 52, an image generation unit 53, a position information acquisition unit 54, and a display control unit 55 by the CPU 5 a executing information processing according to the program stored in the HDD 5 c.

The image acquisition unit 51 acquires the image data such as the endoscopic image generated by the endoscope device 1 and the three-dimensional image generated by the three-dimensional image capturing device 2 from the respective devices directly or via the image storage server 3. The image acquired by the image acquisition unit 51 is stored in the HDD 5 c.

The parameter calculation unit 52 calculates a parameter value regarding an endoscope operation for advancing the endoscope along a predetermined course in the bronchial tube from the three-dimensional image acquired by the image acquisition unit 51. In this case, it is assumed that an advancing and retreating operation in an axial direction, an operation of rotation around an axis, and an operation of bending a distal end portion only within one plane including an axis of the distal end portion are allowed in an endoscope.

The parameter calculation unit 52 first extracts a three-dimensional graph structure of a bronchial tube area included in the three-dimensional image through image analysis and automatically or manually sets a course C into which the endoscope is inserted in the extracted graph structure. On the basis of information on the set course C, the parameter calculation unit 52 calculates parameter values regarding the advancing and retreating operation, the rotation operation, and the bending operation of the endoscope.

Specifically, the parameter calculation unit 52 calculates an insertion length of the endoscope along the set course C as a parameter of the advancing and retreating operation. Further, the parameter calculation unit 52 calculates a bending angle of the endoscope corresponding to an angle of the bending at an arbitrary position at which the endoscope is bent by a branch or the like on the course C as a parameter of the bending operation at the position. More specifically, the parameter calculation unit 52 calculates an angle θ(i) formed by two vectors including a vector V(i−1) from a position P(i−1) of a previous bending operation on the course C to a position P(i) on the course C and a vector V(i) from the position P(i) to a position P(I+1) of a next bending operation on the course C as the angle of bending of the endoscope at the position P(i), as illustrated in FIG. 3.

Further, the parameter calculation unit 52 calculates the angle of the rotation in the rotation operation of the endoscope for further advancing the endoscope advanced to an arbitrary position P(i) (or a position in front) at which the endoscope is bent due to a branch or the like on the course C, forward along the course C, as a parameter of the rotation operation at the position. Specifically, first, a plane S(i) passing through three points of a position P(i−1) of an immediately previous bending operation on the course C, a current position P(i), and a position P(i+1) of the next bending operation as illustrated in FIG. 4 is obtained. As illustrated in FIG. 5, in a state of the endoscope before the rotation operation, a plane S passing through three points of a position Q1 that is a fulcrum of the bending of the distal end portion and positions Q2 and Q3 of the distal end of the endoscope obtained when the distal end portion is bent by two arbitrary different bending angles is obtained. In FIG. 5, a direction in which the operation of bending the distal end portion can be performed is indicated by an arrow B. Similarly, in FIG. 6, a direction in which the operation of bending the distal end portion can be performed is indicated by an arrow B.

Further, as illustrated in FIG. 6, the parameter calculation unit 52 calculates a rotation angle around the axis of the endoscope for causing the plane S to overlap the plane S(i), which is a rotation angle of which a sum with the cumulative total of the rotation angles of the endoscope due to the rotation operation performed until the distal end portion of the endoscope arrives at the current position P(i) after the distal end portion of the endoscope is inserted into the bronchial tube, in which clockwise rotation around an axis of the endoscope is positive and counterclockwise rotation is negative, falls within a predetermined angle range Ra (for example, −90° to +90°), as a parameter of the rotation operation at the position P(i). For example, in a case where the predetermined angle range Ra is from −90° to +90° and a cumulative total of the rotation angles of the endoscope due to the rotation operation performed until the endoscope arrives at the position P(i) is +45°, and the rotation angle of the endoscope at which the plane S can be caused to overlap the plane S(i) is +50° (clockwise) or −130° (counterclockwise), −130° that is a rotation angle of which a sum with the cumulative total falls within 90° to +90° is calculated as a parameter of the rotation operation at the position P(i).

Although a case where the angle range Ra is set to −90° to +90° has been described in the above description, the angle range Ra can be arbitrarily set automatically or manually, and can be appropriately changed as necessary. An example of the settable angle range Ra may include −Ta° to +Tb° (for example, −120° to +120°), where Ta and Tb are positive values exceeding 90, for example. Here, in setting of such an angle range, a sum of any of the clockwise and counterclockwise rotation angles at which the plane S can be caused to overlap the plane S(i) and a cumulative total of the rotation angles of the endoscope due to the rotation operation performed until the distal end portion of the endoscope arrives at the current position P(i) may fall within the angle range Ra. For example, in a case where the predetermined angle range Ra is from −120° to +120°, a cumulative total of the rotation angles of the endoscope due to the rotation operation performed up to the position P(i) is +45°, and the rotation angle of the endoscope capable of causing the plane S to overlap the plane S(i) is +50° (clockwise) or −130° (counterclockwise), a sum of any of the rotation angles and the cumulative total falls within a range of −120° to +120°.

In such a case, the parameter calculation unit 52 may calculate one of two rotation angles in clockwise and counterclockwise rotations as parameter values regarding the rotation operation using any one of first to third methods described below.

As the first method, the parameter calculation unit 52 can calculate the rotation angle at which a direction from a dorsal side to a ventral side of a human body (or a direction from the ventral side to the dorsal side) is closer to an up direction of an image captured by the endoscope after the rotation operation according to the rotation angle among the two rotation angles in clockwise and counterclockwise rotations, as the parameter value regarding the rotation operation.

In this case, there are various method of specifying the rotation angle at which a direction from the dorsal side to the ventral side of the human body (or a direction from the ventral side to the dorsal side) is closer to the up direction of the image from among the two rotation angles. For example, a method of acquiring a direction vector on a three-dimensional image corresponding to an up direction of the image captured by the endoscope after the rotation operation according to the rotation angle with respect to each of the two rotation angles, calculating an inner product of the direction vector on the three-dimensional image and a direction vector directed from the dorsal side to the ventral side of the human body in the three-dimensional image, and specifying the rotation angle at which a value obtained by the calculation is small. Further, there is a method of obtaining the angle β in the up direction Eup of the image captured by the endoscope immediately after insertion into the bronchial tube with reference to the direction Bup from the dorsal side to the ventral side of the human body in the three-dimensional image, and specifying a rotation angle at which a sum of the angle β and a cumulative total of the rotation angles of the endoscope due to the rotation operation performed until the distal end portion of the endoscope arrives at the current position P(i) after the distal end portion of the endoscope is inserted into the bronchial tube falls within an angle range Rup from (−90-β)° to (+90-β)°.

For example, as illustrated in FIG. 7, in a case where the predetermined angle range Ra is from −120° to +120° and the second angle range Rup is from −90° to +90° due to coincidence of the up direction Eup of the image captured by the endoscope in a state immediately after insertion into the bronchial tube with the direction Bup from the dorsal side to the ventral side of the human body in the three-dimensional image, the plane S can be caused to overlap the plane S(i), and in a case where there are two rotation angles of the endoscope of which a sum with the cumulative total falls within a range of −120° to +120°, the rotation angle at which a sum with the cumulative total further falls within −90° to +90° among the two rotation angles is calculated as the parameter value regarding the rotation operation.

Further, in a case where the predetermined angle range Ra is from −120° to +120° and the second angle range Rup is from −70° to +110° due to the angle β of an up direction Eup of the image captured by the endoscope at an insertion start position with respect to a direction Bup from the dorsal side to the ventral side of the human body in the three-dimensional image being −20° as illustrated in FIG. 8, the plane S can be caused to overlap the plane S(i), and when there are two rotation angles of the endoscope of which the sum with the cumulative total falls within the range of −120° to +120°, the rotation angle at which the sum of cumulative total further falls within the range of −70° to +110° among the two rotation angles is calculated as the parameter value regarding the rotation operation.

As the second method, the parameter calculation unit 52 can calculate the rotation angle at which a direction directed from an inside to an outside of a human body is closer to an up direction of an image captured by the endoscope after an rotation operation according to the rotation angle among the two rotation angles in the clockwise direction and the counterclockwise direction, as the parameter value regarding the rotation operation. In this case, a method of specifying the rotation angle at which a direction directed from the inside to the outside of the human body is closer to the up direction of the image among the two rotation angles includes, for example, a method of first setting, in a three-dimensional image, a reference point at a position corresponding to a center (or a centroid) of a human body area included in the three-dimensional image, and then, specifying a rotation angle at which the set reference point exists in a lower portion among two divided portions in a case where, for each rotation angle, the three-dimensional image captured by the endoscope after the rotation operation according to the rotation angle is divided into two in a vertical direction.

As the third method, the parameter calculation unit 52 can calculate a rotation angle at which a sum of absolute values of the rotation angles at positions at which respective rotation operations from a position thereof to positions at which one or more previous rotation operations are performed are performed is smaller between the two rotation angles in the clockwise direction and the counterclockwise direction, as a parameter value regarding the rotation operation.

The image generation unit 53 generates a virtual endoscopic image that is obtained by virtually imaging an inner wall of the bronchial tube included in the three-dimensional image by a virtual endoscope of which a position and a posture are defined by parameter values of the endoscope operation calculated by the parameter calculation unit 52 from the three-dimensional image. For the generation of the virtual endoscopic image, a known method such as a volume rendering method or a surface rendering method can be used. According to the image generation unit 53, it is possible to obtain not only the virtual endoscopic image of a still image at each position on the course C, but also a virtual endoscopic image of a moving image captured according to a movement of the endoscope along the course C.

The position information acquisition unit 54 acquires position information of the distal end of the endoscope detected by the position detection device 13.

The display control unit 55 displays navigation information for guiding the endoscope to a target position along a predetermined course in the bronchial tube on the display unit 7. The display control unit 55, specifically, can display a parameter value of the endoscope operation calculated by the parameter calculation unit 52, the virtual endoscopic image of the moving image or the still image generated by the image generation unit 53, and the like, as the navigation information, on the display unit 7. For example, the display control unit 55 can display the endoscopic image acquired from the endoscope device 1 in real time by the image acquisition unit 51 on the display unit 7 and can also display parameter values of an endoscope operation at a position of the distal end of the endoscope 11 acquired by the position information acquisition unit 54. Further, the display control unit 55 can display the virtual endoscopic image for navigating an endoscope operation at the position of the distal end of the endoscope 11 obtained by the position information acquisition unit 54 or a next endoscope operation on the display unit 7 instead of displaying the endoscopic image and the parameter values of the endoscope operation or in addition to the display. Of course, the parameter values of the endoscope operation may be displayed together on the display of the virtual endoscopic image.

Next, an example of a flow of a process that is performed by the image processing device 4 will be described with reference to a flowchart illustrated in FIG. 9. First, the image acquisition unit 51 acquires the three-dimensional image obtained by imaging the chest portion including the bronchial tube from the image storage server 3 (S1). Then, the parameter calculation unit 52 calculates the parameter value regarding the endoscope operation for advancing the endoscope along a predetermined course in the bronchial tube from the three-dimensional image (S2). Specifically, the parameter calculation unit 52 first extracts a three-dimensional graph structure of a bronchial tube area included in the three-dimensional image through image analysis, sets the course C into which the endoscope is inserted in the extracted graph structure, and calculates parameter values regarding the advancing and retreating operation, the rotation operation, and the bending operation of the endoscope on the basis of information on the set course C. In particular, the parameter calculation unit 52 calculates a rotation angle around the axis of the endoscope for causing the plane S on which an operation of bending the endoscope can be performed to overlap the plane S(i) passing through positions of three points on the course C including an arbitrary position P(i), which is a rotation angle of which a sum with a cumulative total of the rotation angles of the endoscope due to the rotation operation performed until the distal end portion of the endoscope arrives at the current position P(i) after the distal end portion of the endoscope is inserted into the bronchial tube falls within a predetermined angle range Ra (for example, −90° to)+90°, as the parameter of the rotation operation of the endoscope at the arbitrary position P(i) at which the endoscope is bent by a branch or the like on the course C.

Then, the position information acquisition unit 54 acquires the position information of the distal end of the endoscope detected by the position detection device 13 (S3), and the display control unit 55 acquires the parameter value of the endoscope operation corresponding to the position of the distal end of the endoscope 11 acquired by the position information acquisition unit 54 from among the parameter values regarding the endoscope operation calculated in step S2 (S4). Further, the image generation unit 53 generates a virtual endoscopic image for navigating the endoscope operation corresponding to the position of the distal end of the endoscope 11 acquired by the position information acquisition unit 54 from the three-dimensional image (S5). The display control unit 55 displays the information on the parameter value acquired in step S4 or the virtual endoscopic image acquired in step S5 on the display unit 7 (S6), and ends the process.

With the above configuration, in the image processing system of this embodiment, on the assumption that the endoscope is an endoscope in which an advancing and retreating operation in an axial direction, an operation of rotation around an axis, and an operation of bending a distal end portion only within one plane including an axis of the distal end portion are allowed, the parameter calculation unit 52 calculates the parameter value regarding the endoscope operation for advancing the endoscope along a predetermined course in the bronchial tube from the three-dimensional image representing the bronchial tube. Specifically, when one of a clockwise direction and a counterclockwise direction around the axis is set to positive, the other is set to negative, and a rotation angle of the endoscope due to the rotation operation at an arbitrary position on the course is calculated as a parameter value regarding the rotation operation, the rotation angle of the endoscope due to the rotation operation at the position of the target is calculated so that a sum of a cumulative total of rotation angles of the endoscope due to a rotation operation performed until the distal end portion arrives at the position of the target after the distal end portion is inserted into the bronchial tube, and the rotation angle of the endoscope due to the rotation operation at the position of the target falls within the predetermined angle range Ra. Thus, an appropriate angle range Ra for which a movable range of a wrist or the like is taken into consideration is determined in advance such that the rotation of the endoscope due to the rotation operation is performed only within the angle range Ra, and it is possible to reduce trouble of an operator gripping an endoscope again and improve operability.

In particular, in the image processing system of this embodiment, in a case where the angle range Ra is from −90° to +90°, it is possible to reduce trouble of the operator gripping an endoscope again and improve operability.

Although the case where the image processing device 4 includes the image generation unit 53, the position information acquisition unit 54, and the display control unit 55 has been described in the above embodiment, configurations thereof may be omitted, the parameter value regarding the endoscope operation may be calculated from the three-dimensional image acquired by the image acquisition unit 51, by the parameter calculation unit 52, and the calculated parameter value may be provided to be available to an external device.

In the above embodiment, the case where the image processing device, method, and program of the present invention are applied to the operation of the endoscope in the bronchial tube have been described, but the present invention is not limited thereto and the present invention can also be applied to a case where the endoscope is operated in another tubular structure having a branched structure, such as a vessel.

EXPLANATION OF REFERENCES

1: endoscope device

2: three-dimensional image capturing device

3: image storage server

4: image processing device

5: device body

5 a: CPU

5 b: memory

5 c: HDD

6: input unit

7: display unit

11: endoscope

12: processor device

13: position detection device

51: image acquisition unit

52: parameter calculation unit

53: image generation unit

54: position information acquisition unit

55: display control unit 

What is claimed is:
 1. An image processing device comprising a parameter calculation unit that calculates a parameter value regarding an endoscope operation for advancing an endoscope along a predetermined course within a luminal structure from a three-dimensional image indicating the luminal structure, wherein an advancing and retreating operation in an axial direction, an operation of rotation around an axis, and an operation of bending a distal end portion only within one plane including an axis of the distal end portion are allowed in the endoscope, and the parameter calculation unit sets one of a clockwise direction and a counterclockwise direction around the axis to positive, sets the other to negative, and calculates a rotation angle of the endoscope due to the rotation operation at an arbitrary position on the course as a parameter value regarding the rotation operation, the parameter calculation unit calculating the rotation angle of the endoscope due to the rotation operation at the position so that a sum of a cumulative total of rotation angles of the endoscope due to a rotation operation performed until the distal end portion arrives at the position after the distal end portion is inserted into the luminal structure, and the rotation angle of the endoscope due to the rotation operation at the position falls within a predetermined angle range.
 2. The image processing device according to claim 1, wherein the angle range is from −90° to +90°.
 3. The image processing device according to claim 1, wherein the luminal structure is a luminal organ of a human body, the angle range is from −Ta° to +Tb°, where Ta and Tb are positive values exceeding 90, and when calculating the rotation angle of the endoscope due to the rotation operation at the arbitrary position on the course as the parameter value regarding the rotation operation, the parameter calculation unit calculates a rotation angle at which a direction from an dorsal side to a ventral side of the human body is closer to an up direction of an image captured by the endoscope after the rotation operation, as the parameter value regarding the rotation operation, in a case in which there are two rotation angles of the endoscope due to the rotation operation at the position so that the sum falls within the angle range.
 4. The image processing device according to claim 1, wherein the luminal structure is a luminal organ of a human body, the angle range is from −Ta° to +Tb°, where Ta and Tb are positive values, where Ta and Tb are positive values exceeding 90, and when calculating the rotation angle of the endoscope due to the rotation operation at the arbitrary position on the course as a parameter value regarding the rotation operation, the parameter calculation unit calculates a rotation angle at which a direction from an inside to an outside of the human body is closer to an up direction of an image captured by the endoscope after the rotation operation, as a parameter value regarding the rotation operation, in a case in which there are two rotation angles of the endoscope due to the rotation operation at the position so that the sum falls within the angle range.
 5. The image processing device according to claim 1, wherein the angle range is from −Ta° to +Tb°, where Ta and Tb are positive values, where Ta and Tb are positive values exceeding 90, and when calculating the rotation angle of the endoscope due to the rotation operation at an arbitrary position on the course as a parameter value regarding the rotation operation, the parameter calculation unit calculates a rotation angle at which a sum of absolute values of the rotation angles at positions at which respective rotation operations from the arbitrary position to a position at which one or more previous rotation operations are performed are performed is smaller, as a parameter value regarding the rotation operation, in a case in which there are two rotation angles of the endoscope due to the rotation operation at the position so that the sum falls within the angle range.
 6. The image processing device according to claim 1, comprising: an image generation unit that applies the parameter value calculated by the parameter calculation unit to generate a virtual endoscopic image from the three-dimensional image.
 7. The image processing device according to claim 2, comprising: an image generation unit that applies the parameter value calculated by the parameter calculation unit to generate a virtual endoscopic image from the three-dimensional image.
 8. The image processing device according to claim 3, comprising: an image generation unit that applies the parameter value calculated by the parameter calculation unit to generate a virtual endoscopic image from the three-dimensional image.
 9. The image processing device according to claim 4, comprising: an image generation unit that applies the parameter value calculated by the parameter calculation unit to generate a virtual endoscopic image from the three-dimensional image.
 10. The image processing device according to claim 5, comprising: an image generation unit that applies the parameter value calculated by the parameter calculation unit to generate a virtual endoscopic image from the three-dimensional image.
 11. The image processing device according to claim 1, comprising: a display unit that displays an image; and a display control unit that displays the parameter value corresponding to the position of the endoscope calculated by the parameter calculation unit on the display unit according to the position of the endoscope on the course when advancing the endoscope along the course in the luminal structure.
 12. The image processing device according to claim 2, comprising: a display unit that displays an image; and a display control unit that displays the parameter value corresponding to the position of the endoscope calculated by the parameter calculation unit on the display unit according to the position of the endoscope on the course when advancing the endoscope along the course in the luminal structure.
 13. The image processing device according to claim 3, comprising: a display unit that displays an image; and a display control unit that displays the parameter value corresponding to the position of the endoscope calculated by the parameter calculation unit on the display unit according to the position of the endoscope on the course when advancing the endoscope along the course in the luminal structure.
 14. The image processing device according to claim 4, comprising: a display unit that displays an image; and a display control unit that displays the parameter value corresponding to the position of the endoscope calculated by the parameter calculation unit on the display unit according to the position of the endoscope on the course when advancing the endoscope along the course in the luminal structure.
 15. The image processing device according to claim 5, comprising: a display unit that displays an image; and a display control unit that displays the parameter value corresponding to the position of the endoscope calculated by the parameter calculation unit on the display unit according to the position of the endoscope on the course when advancing the endoscope along the course in the luminal structure.
 16. The image processing device according to claim 6, comprising: a display unit that displays an image; and a display control unit that displays the parameter value corresponding to the position of the endoscope calculated by the parameter calculation unit on the display unit according to the position of the endoscope on the course when advancing the endoscope along the course in the luminal structure.
 17. An image processing method comprising: calculating a parameter value regarding an endoscope operation for advancing an endoscope along a predetermined course within a luminal structure from a three-dimensional image indicating the luminal structure, wherein an advancing and retreating operation in an axial direction, an operation of rotation around an axis, and an operation of bending a distal end portion only within one plane including an axis of the distal end portion are allowed in the endoscope, and a process of calculating the parameter value includes setting one of a clockwise direction and a counterclockwise direction around the axis to positive, setting the other to negative, and calculating a rotation angle of the endoscope due to the rotation operation at an arbitrary position on the course as a parameter value regarding the rotation operation, the rotation angle of the endoscope due to the rotation operation at the position being calculated so that a sum of a cumulative total of rotation angles of the endoscope due to a rotation operation performed until the distal end portion arrives at the position after the distal end portion is inserted into the luminal structure, and the rotation angle of the endoscope due to the rotation operation at the position falls within a predetermined angle range.
 18. The image processing method according to claim 17, wherein the angle range is from −90° to +90°.
 19. A non-transitory computer readable recording medium storing an image processing program of causing a computer to execute a process of calculating a parameter value regarding an endoscope operation for advancing an endoscope along a predetermined course within a luminal structure from a three-dimensional image indicating the luminal structure, wherein an advancing and retreating operation in an axial direction, an operation of rotation around an axis, and an operation of bending a distal end portion only within one plane including an axis of the distal end portion are allowed in the endoscope, and a process of calculating the parameter value includes setting one of a clockwise direction and a counterclockwise direction around the axis to positive, setting the other to negative, and calculating a rotation angle of the endoscope due to the rotation operation at an arbitrary position on the course as a parameter value regarding the rotation operation, the rotation angle of the endoscope due to the rotation operation at the position being calculated so that a sum of a cumulative total of rotation angles of the endoscope due to a rotation operation performed until the distal end portion arrives at the position after the distal end portion is inserted into the luminal structure, and the rotation angle of the endoscope due to the rotation operation at the position falls within a predetermined angle range.
 20. The image processing program according to claim 19, wherein the angle range is from −90° to +90°. 